package com.neulogistics.contrib.transfercenter.domain.model.valueobject;

import lombok.Data;

@Data
public class Address {
    private String province;

    private String city;

    private String zone;

    private String detail;

    /**
     * 地区经纬度，例如："116.482086,39.990496"
     */
    private String location;

    public Address() {
    }

    public Address(String province, String city, String zone, String detail) {
        this.province = province;
        this.city = city;
        this.zone = zone;
        this.detail = detail;
    }

    public String getAddressString(){
        return province + city + zone + detail;
    }
}
